import { baseURL } from '@/config'

/**
 * 打开新页面
 * @param url 路径
 */
export function openPage(url: string) {
  let wholeUrl = url
  if (!/^http/.test(url)) {
    wholeUrl = baseURL + url
  }
  window.open(wholeUrl)
}
